package com.vastcom.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * Roleresource entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="roleresource"
    ,catalog="student"
)

public class Roleresource  implements java.io.Serializable {


    // Fields    

     private String id;
     private String roleid;
     private String resourceid;


    // Constructors

    /** default constructor */
    public Roleresource() {
    }

    
    /** full constructor */
    public Roleresource(String roleid, String resourceid) {
        this.roleid = roleid;
        this.resourceid = resourceid;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="uuid.hex")@Id @GeneratedValue(generator="generator")
    
    @Column(name="id", unique=true, nullable=false, length=32)

    public String getId() {
        return this.id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    @Column(name="roleid", length=32)

    public String getRoleid() {
        return this.roleid;
    }
    
    public void setRoleid(String roleid) {
        this.roleid = roleid;
    }
    
    @Column(name="resourceid", length=32)

    public String getResourceid() {
        return this.resourceid;
    }
    
    public void setResourceid(String resourceid) {
        this.resourceid = resourceid;
    }
   








}